var $;
var table;
var layer;
var form;
layui.use(['table','element','layer'],function() {
    $ = layui.jquery;
    table = layui.table;
    layer = layui.layer;
    form = layui.form;

    $("#btn1").on('click',function(){
        location.reload();
    });

    $("#btn2").on('click',function(){
        //获取下拉框的值
        var status=$("select[name=status]").val();
        var cstatus=$("select[name=cstatus]").val();
        //传参给父页面
        parent.$("#beizhu").val($("#beizhu").val());
        parent.$("#status").val(status);
        parent.$("#cstatus").val(cstatus);
        parent.$("#num").val($("#status1").val());

        parent.setTab();
        var index=parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    });
});